package com.zm.scsimple.config.client.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zoum
 * @create 2019/2/21 18:05
 */
@RestController
public class TController {

    @Value("${profile}")
    private String profile;

    @GetMapping("/profile")
    public String echo(){
        return "echo: " + profile;
    }

}
